#ifndef __BSP_USART_H__
#define __BSP_USART_H__

#include "at32f425.h"
#include "stdio.h"

#define DEBUG_USART										USART2
#define DEBUG_USART_CRM_CLK						CRM_USART2_PERIPH_CLOCK
#define DEBUG_USART_BAUDRATE					9600

#define DEBUG_USART_TX_PIN						GPIO_PINS_2
#define DEBUG_USART_TX_PORT						GPIOA
#define DEBUG_USART_TX_CRM_CLK				CRM_GPIOA_PERIPH_CLOCK
#define DEBUG_USART_TX_PIN_SOURCE			GPIO_PINS_SOURCE2
#define DEBUG_USART_TX_PIN_MUX_NUM		GPIO_MUX_1

#define DEBUG_USART_RX_PIN						GPIO_PINS_3
#define DEBUG_USART_RX_PORT						GPIOA
#define DEBUG_USART_RX_CRM_CLK				CRM_GPIOA_PERIPH_CLOCK
#define DEBUG_USART_RX_PIN_SOURCE			GPIO_PINS_SOURCE3
#define DEBUG_USART_RX_PIN_MUX_NUM		GPIO_MUX_1


void DEBUG_USART_Init(void);

#endif
